package cn.hesion.Proxy.StaticProxy.DataBaseProxy;

public class OrderService implements IOrderService{
    private OrderDao orderDao;

    public OrderService() {
        this.orderDao = new OrderDao();
    }

    @Override
    public int createOrder(Order order) {
        System.out.println("OrderService调用orderDao创建对象");
        return orderDao.insert(order);
    }
}
